import { atom } from "recoil";

const lightXState = atom({
  key: "lightXState", // 唯一标识符
  default: 0, // 默认值
});

const meshColorState = atom({
  key: "meshColorState",
  default: "#7c9f1b",
});

const lightYState = atom({
  key: "lightYState", // 唯一标识符
  default: 0, // 默认值
});

const lightZState = atom({
  key: "lightZState", // 唯一标识符
  default: 1, // 默认值
});

const showAxisState = atom({
  key: "showAxisState",
  default: false,
});

const socketState = atom({
  key: "socketState",
  default: null,
  dangerouslyAllowMutability: true,
});

const mesh1State = atom({
  key: "mesh1State",
  default: null,
});

export {
  lightXState,
  lightYState,
  lightZState,
  showAxisState,
  socketState,
  mesh1State,
  meshColorState,
};
